<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>主页更新向导</title>
<link type="text/css" rel="stylesheet" href="main.css"/>
<script src="jquery.js" language="javascript" type="text/javascript"></script>
<script src="base.js" language="javascript" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="all" href="../include/calendar/calendar-win2k-1.css" title="win2k-1" />
<script type="text/javascript" src="../include/calendar/calendar.js"></script>
<script type="text/javascript" src="../include/calendar/calendar-cn.js"></script>
<script language="javascript">
function SelectTemplets(fname)
{
   var posLeft = 200;
   var posTop = 300;
   window.open("../include/dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
}
</script>

</head>
<body>
<div class="mtitle">
  <div class="lbox">主页更新向导 </div>
</div>
<table _dlist="line check" class="tlist" align="center">
  <form name="form1" action="makehtml_homepage.php" target="stafrm" method="post">
  <input type="hidden" name="dopost" value="make">
<tbody>
    <tr> 
      <td width="177" valign="top" bgcolor="#FFFFFF">选择主页模板：</td>
      <td width="791" valign="top" bgcolor="#FFFFFF">
	    <input name="templet" type="text" class="txt" id="templet" style="width:300" value="<?php echo $row['templet']?>"> 
        <input type="button" name="set4" value="浏览..." style="width:60" onClick="SelectTemplets('form1.templet');" class="btn1s"> 
      </td>
    </tr>
    <tr> 
      <td height="20" colspan="2" valign="top" bgcolor="#FFFFFF" style="line-height:22px"><small>默认的情况下，生成的主页文件放在CMS的安装目录，如果您的CMS不是安装在网站根目录的，又想把主页创建到网站根目录，那么请用相对路径来表示“主页位置”。例：您的CMS安装在 
        http://www.abc.com/dedeeims/ 目录，您想生成的主页为 http://www.abc.com/index.html，那么主页位置就应该用： 
        “../index.html”。</small></td>
    </tr>
    <tr> 
      <td height="20" valign="top" bgcolor="#FFFFFF">主页位置：</td>
      <td height="20" valign="top" bgcolor="#FFFFFF"><input name="position" type="text" class="txt" id="position" value="<?php echo $row['position']?>" size="30"> 
      </td>
    </tr>
    <tr> 
      <td height="20" valign="top" bgcolor="#FFFFFF">相关选项：</td>
      <td height="20" valign="top" bgcolor="#FFFFFF">
	  <input name="saveset" type="radio" value="0" class="np" id="ss1">
       <label for="ss1">不保存当前选项</label> 
      <input name="saveset" type="radio" class="np" value="1" checked>
      <label for="ss1">保存当前选项</label>
	</td>
    </tr>
    <tr> 
      <td height="31" colspan="2" bgcolor="#FAFAF1" align="center">
        　 <button type="button" class="btn1" onClick="window.open('makehtml_homepage.php?dopost=view&templet='+form1.templet.value);">预览主页</button>
         <button type="submit" class="btn1">更新主页HTML</button>
      </td>
    </tr>
  </form>
  <tr bgcolor="#F7FAF3"> 
    <td height="20" colspan="2"><table width="100%">
        <tr> 
          <td width="74%">进行状态： </td>
          <td width="26%" align="right">
		    <script language='javascript'>
            	function ResizeDiv(obj,ty)
            	{
            		if(ty=="+") document.all[obj].style.pixelHeight += 50;
            		else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
            	}
            	</script>
            [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] 
          </td>
        </tr>
      </table> </td>
  </tr>
  </tbody>
  <tfoot>
  <tr bgcolor="#FFFFFF"> 
    <td colspan="2" id="mtd">
			<div id='mdv' style='width:100%;height:350px;'> 
        <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
      </div>
	  </td>
  </tr>
  </tfoot>
</table>
</body>
</html>